<?php echo '<?xml version="1.0" encoding="UTF-8"?>'?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr">
<head>
	<meta charset="utf-8">
	<title><?php echo ucfirst($page)?></title>

<!-- 	<meta name="description" content=""> -->
<!-- 	<meta name="keywords" content=""> -->
<!-- 	<meta name="author" content=""> -->

	<link rel="shortcut icon" href="favicon.ico">
	<link href="css/general.css" type="text/css" rel="stylesheet" media="screen" charset="utf-8">
</head>
<body>
	<header>
		<hgroup>
			<h1 id="logo">Sunwars</h1>
			<nav>
				<ul>
					<li><a href="../" title="déconnection">se déconnecter</a></li>
				</ul>
			</nav>
		</hgroup>
	</header>
	<nav role="navigation" id="menu-principal">
		<ul>
			<li><a href="?page=<?php echo $page?>" title="page sans les paramètres d'url">Enlever les actions</a></li>
			<li><a href="?page=structure" title="gestion de la planète">Gestion de la planète</a></li>
			<li><a href="?page=move" title="déplacement de vaisseaux">Mouvement</a></li>
			<li><a href="?page=galaxy" title="planètes du jeu">Voir les planètes</a></li>
			<li><a href="?page=message" title="voir ses message">Message</a></li>
			<li><a href="?page=options" title="configuration des options">Options</a></li>
		</ul>
		<form method="get" action="?<?php echo htmlspecialchars($_SERVER['QUERY_STRING'], ENT_QUOTES, 'UTF-8')?>">
			<label for="select-planet">Séléctionner une planète</label> <select id="select-planet" name="planet">
				<?php
				$planets = $player->offsetGet(U1_Planet::INDEX);
				$current_id = $planets->getCurrentId();
				foreach ($planets as $id => $planet):?>
					<option value="<?php echo $id?>" <?php if ($current_id === $id) echo 'selected="select"'?>><?php echo '['.$id.'] '.$planet->targetGlue()." \n".$planet->getName()?></option>
				<?php endforeach;?>
			</select>
			<input type="submit" value="Choisir" />
			<?php
				//sélectionne la planète
				if (isset($_GET['planet']))
					try{
						$planets->setCurrentId($_GET['planet']);
					}
					catch (SW_Planet_Exception $e)
					{
						echo '<p class="information error">'.$e->getMessage().'</p>';
					}
				?>
		</form>
	</nav>
	<?php if (isset($nopage)) echo '<section class="information error"><p>La page demandé n\'existe pas</p></section>';?>
	<section class="container">